import request from '@/utils/request'

// 查询房源审核记录列表
export function listAudit(query) {
  return request({
    url: '/system/audit/list',
    method: 'get',
    params: query
  })
}

// 查询房源审核记录详细
export function getAudit(auditId) {
  return request({
    url: '/system/audit/' + auditId,
    method: 'get'
  })
}

// 新增房源审核记录
export function addAudit(data) {
  return request({
    url: '/system/audit',
    method: 'post',
    data: data
  })
}

// 修改房源审核记录
export function updateAudit(data) {
  return request({
    url: '/system/audit',
    method: 'put',
    data: data
  })
}

// 删除房源审核记录
export function delAudit(auditId) {
  return request({
    url: '/system/audit/' + auditId,
    method: 'delete'
  })
}
